import { request, upload as uploadApi } from "./request"
import {Method} from "@/api/config/enum"
export const http = {
	get:(url:string,params?:any)=>request(url,Method.get,params),
	post:(url:string, params?:any,header?:any)=>request(url,Method.post,params,header),
	put:(url:string, params?:any,header?:any)=>request(url,Method.put,params,header),
	del:(url:string, params?:any,header?:any)=>request(url,Method.del,params,header),
	upload:(file:string,formData?:any)=>uploadApi(file,formData),
}